// 参考文档
// https://help.aliyun.com/zh/arms/browser-monitoring/developer-reference/sdk-reference
import BrowserLogger from '@arms/js-sdk';
const env = process.env.NODE_ENV;
const environmentList = {
    test: 'daily',
    production: 'prod'
};
const logger = () => {
    if (env === 'development') {
        // 开发环境不需要上传
        return;
    }
    try {
        const __bl = BrowserLogger.singleton({
            pid: 'd76gtfmpta@5559cc96d8d02cb',
            appType: 'web',
            imgUrl: 'https://arms-retcode.aliyuncs.com/r.png?',
            sendResource: true,
            enableLinkTrace: true,
            behavior: true,
            enableSPA: true,
            useFmp: true,
            enableConsole: true,
            environment: environmentList[env]
        });
    } catch (error) {
        // console.log('error', error);
    }
};

export default logger;
